package io.gitee.baicaixiaozhan.httpmessagewrapper.filter;

import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;

/**
 * DESC: 忽略包装对象过滤器
 *
 * @author baicaixiaozhan
 * @since v1.0.0
 */
public interface IgnoreResultsWrapperFilter {

    boolean ignored(Object body,
                    MethodParameter returnType,
                    MediaType selectedContentType,
                    Class<? extends HttpMessageConverter<?>> selectedConverterType,
                    ServerHttpRequest request, ServerHttpResponse response);

}
